import serve from "@/service/index.ts";

interface Login {
  name: string;
  password: string;
  email?: string;
  phone?: string;
}
export const login = (data: Login) => {
  return serve.post({
    url: "/standard/login",
    data,
  });
};
export const register = (data: Login) => {
  return serve.post({
    url: "/standard/register",
    data,
  });
};
